package com.wkang.feign;

import com.wkang.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author: wkang
 * @package: com.wkang.feign
 * @date: 2019/11/14
 * @version: ver1.0
 */
@FeignClient(value="user-provider")
public interface UserClient {
    @RequestMapping("/user/find/{id}")
    User findById(@PathVariable(value="id")Integer id);
}
